﻿@* Generator: Template TypeVisibility: Internal GeneratePrettyNames: True TrimLeadingUnderscores : true *@
@using DotNetCore.CAP.Dashboard
@using DotNetCore.CAP.Dashboard.Resources
@inherits RazorPage
@{
    var metric = DashboardMetric.Func(this);
    var className = metric == null ? "metric-null" : metric.Style.ToClassName();
    var highlighted = metric != null && metric.Highlighted ? "highlighted" : null;
}
<div class="metric @className @highlighted">
    <div class="metric-body" data-metric="@DashboardMetric.Name">
        @(metric?.Value)
    </div>
    <div class="metric-description">
        @(Strings.ResourceManager.GetString(DashboardMetric.Title) ?? DashboardMetric.Title)
    </div>
</div>